﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;

namespace Xc.WaterMeters.ServerHosts.Models
{
    public class DesignTimeDbCOntextFactory : IDesignTimeDbContextFactory<ApplicationDbContext>
    {
        public ApplicationDbContext CreateDbContext(string[] args)
        {
            return new Startup().CreateDbContext(args);
        }
    }
}
